package com.project.service;


import com.project.bean.InfoBean;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

@Service
public class RabbitMQService {

    @RabbitListener(queues = "infoQueue")
    public String message(InfoBean infoBean){
        System.out.println(infoBean.getMovieName());
      return infoBean.getOrderNum();
    }
}
